# coding:utf-8

'''
Hypervisor 连接信息
'''
import libvirtmod;
import libvirtError;

class virConnect:
    
    def __init__(self,_obj=None):
        self._o = _obj;
    
    '''
    断开连接
    '''
    def close(self):
        ret = libvirtmod.virConnectClose(self._o);
        self._o = None;
        if ret == -1: 
            raise libvirtError ('virConnectClose() failed', conn=self);
        return ret;
    
    
    
    pass
